package com.bhs.sansong.base;

import android.content.Context;

import com.amap.api.services.core.ServiceSettings;
import com.pgyer.pgyersdk.PgyerSDKManager;
import com.umeng.commonsdk.UMConfigure;

import cn.jiguang.api.utils.JCollectionAuth;
import cn.jpush.android.api.JPushInterface;

public class Initialize {
    public static void init(Context context){
        UMConfigure.init(context,"64882f08e56f164659be8245","cargo=",UMConfigure.DEVICE_TYPE_PHONE, "");
        //同意隐私政策
        ServiceSettings.updatePrivacyShow(context, true, true);
        ServiceSettings.updatePrivacyAgree(context, true);

        JPushInterface.init(context);
        // 调整点二：隐私政策授权获取成功后调用
        JCollectionAuth.setAuth(context, true); //如初始化被拦截过，将重试初始化过程
    }
}
